<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品信息</title>

</head>
<body>
<h1>商品信息</h1>
<table border="2px" id="table">
		<tr>
			<td>商品id</td>
			<td>商品名称</td>
			<td>商品价格</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${products}" var="p">
	<tr>
		<td>${p.id}</td>
		<td>${p.name}</td>
		<td>${p.price}</td>
		<td>
			<a href="editProduct?id=${p.id }">修改</a><!--跳到servlet处理  -->
			<a href="deleteProduct?id=${p.id }">删除</a>
		</td>
	</tr>
	</c:forEach>
</table>
<a href="index.jsp">返回</a>
</body>
</html>